<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'addteacher.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<style type="text/css">
		table tr td{
			border: 1px solid #CCCCCC;
			width: 160px;
		}
	</style>
  </head>
  
  <body>
	  <s:form action="teacher!addteacher.action">
	      <table>
	  		<tr>
				<td>
					姓名：
				</td>
				<td>
					<input type="text" name="teacher.name"/>
				</td>
			</tr>
	  		<tr>
				<td>
					登录名：
				</td>
				<td>
					<input type="text" name="teacher.loginName"/>
				</td>
			</tr>
	  		<tr>
				<td>
					登录密码：
				</td>
				<td>
					<input type="password" name="teacher.password"/>
				</td>
			</tr>
	  		<tr>
				<td>
					部门：
				</td>
				<td>
					<s:select theme="simple" name="teacher.dept.id" list="#request.dept" listKey="id" listValue="name"/>
				</td>
			</tr>
	  		<tr>
				<td>
					类型：
	  			</td>
	  			<td>
					<input type="radio" name="teacher.isPro" value="0" checked="checked"/>专业老师
					<input type="radio" name="teacher.isPro" value="1"/>班主任
	  			</td>
	  		</tr>
	  		<tr>
	  			<td colspan="2">
	  				<input type="submit" value="确定添加" />
	  			</td>
	  		</tr>
	  	</table>
	  </s:form>
  </body>
</html>
